<template>
	<view class="page_box">
		<uni-nav-bar left-icon="arrowthinleft" title="消息详情" :border="false" bg="bg-zhuse" color="#fff" @clickLeft="goBack()"></uni-nav-bar>
		<view class="padding-30 bg-fff">
			<!-- <view class="padding-x-30 padding-bottom-30 fs-30 text-center fw-bold">{{info.name}}</view> -->
			<view class="padding-bottom-40 fs-28 text-center">{{info.create_time}}</view>
			<view class="fs-28" v-html="info.title"></view>		
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id:'',
			info:''
		};
	},
	onLoad(opt) {
		this.id = opt.id;
		this.init();
	},
	methods: {
		init() {
			this.$api.message_info({id:this.id}).then(res => {
				const regex = new RegExp('<img', 'gi');
				 // res.data.detail =  res.data.data.detail.replace(regex, '<img style="width:100%;height:auto"');
				this.info = res.data;
			});
		}
	}
}
</script>

<style lang="scss">
	page{
		background-color: #fff;
	}
</style>
